<template>
	<view>
		<!-- 实现Log打印 -->
		<button @click="onLog()">console.log</button>
		<button @click="onDebug()">console.debug</button>
		<button @click="oninfo()">console.info</button>
		<button @click="onwarn()" type="warn">console.warn</button>
		<button @click="onError()" type="warn">console.error</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '打印日志'
			}
		},
		methods: {
			onLog() {
				console.log("onLog()-->" + this.title);
				// clog直接回车
				console.log("clog");
				// clogv直接回车
				console.log(': ', );
				// ,
			},

			onwarn() {
				if (name === 'zss') {
					console.log("登录验证成功");
				} else {
					console.warn("this is warn log");
				}
			},


		}
	}
</script>

<style>

</style>